package com.idol.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @author SupremeSir
 * @description
 * @className BlockExceptionHandler
 * @date 2021/2/24 23:32
 **/
public class BlockExceptionHandler {
    // 注意该方法必须为静态方法
    public static String handleException(BlockException blockException) {
        return "限流了~~~~~~~~~~~~";
    }

    public static String handlerError() {
        return "Java 代码运行异常";
    }
}
